package springsecurity.Controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author cc
 * @date 2022/6/13 19:52
 * @Description :
 */
@Controller
@RequestMapping("/pass")
public class PassController {
    @RequestMapping("/login")
    public String login(){
        return "forward:/login.html";
    }

    @RequestMapping("/toMain")
    public String toMain(){
        System.out.println("我是/post/main.html页面");
        return "forward:/main.html";
    }

    @RequestMapping("/toFail")
    public String toFail(){
        System.out.println("我是/post/fail.html的页面");
        return "forward:/fail.html";
    }

    @RequestMapping("/toAuth")
    public String toAuth(){
        System.out.println("我是/post/auth.html的页面");
        return "forward:/auth.html";
    }
}
